package org.dangran.controller;

import org.dangran.aop.SystemLog;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@CrossOrigin
@RestController
public class HelloController {

    @SystemLog
    @GetMapping("/hello")
    public String hello(){
        String s = "hello";
        System.out.println(s);
        //int i = 1/0;
        return s;
    }

}
